import {get,post} from '../../utils/request'

const actions={
  //查询所有个人信息
  findAllMessage(context,list){
    //异步操作
    get('/baseUser/findUserDetailsById',list).then(res=>{
      let response=res.data.list
      context.commit('setCategorys',response)
      let total=res.data.total
      context.commit('setTotal',total)
    })
  }
}

export default{
  namespaced:true,
  state,
  actions,
  mutations
}